package com.example.zwgt.yrfk.ui.access.adapter;



import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.zwgt.yrfk.R;
import com.example.zwgt.yrfk.bean.TestBean;

import java.util.List;

public class AccessAdapter extends BaseQuickAdapter<TestBean,BaseViewHolder> {


    public AccessAdapter(int layoutResId, List<TestBean> data) {
        super(R.layout.guest_item, data);
    }



    @Override
    protected void convert(BaseViewHolder helper, TestBean item) {
        helper.setText(R.id.tv_guest_name,item.getNickname())
                .setText(R.id.tv_guest_moneyNum,item.getPhone())
                .setText(R.id.tv_guest_when,item.getId())
                .setText(R.id.tv_guest_status,item.getHead_img());
    }
}
